<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>


</head>

<body>
    <!--如何房子头部，此时的body对象会为null-->
    <script th:src="@{/ts/index.js}" type="text/javascript"></script>
</body>

</html>